package com.legna.mhxy.support.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper=false)
@TableName("t_ring_type")
public class RingType {

    @TableId
    private Long id;

    /**
     * 环名
     */
    private String name;

    /**
     * 环code
     */
    private String code;

    /**
     * 等级
     */
    private Integer grade;

    /**
     * 环类型id
     */
    private Long categoryId;

    /**
     * 排序
     */
    private Integer sort;

    public RingType() {}
    public RingType(int sort,int grade, String name,Long categoryId) {
        this.name = name;
        this.code = name;
        this.grade = grade;
        this.categoryId = categoryId;
        this.sort = sort;
    }
}
